package com.codemate.interview.constant;

import java.time.Duration;

/**
 * rabbit常量类
 *
 * @author hice
 */
public final class RabbitConstant {

    /**
     * 延时队列名（延时消费）
     */
    public static final String DELAY_QUEUE_KEY = "DELAY_QUEUE_KEY";
    public static final String DELAY_EXCHANGE_KEY = "DELAY_EXCHANGE_KEY";
    public static final String DELAY_ROUTING_KEY = "DELAY_ROUTING_KEY";
    public static final long DELAY_TTL = Duration.ofMillis(15).toMillis();

    /**
     * 可变延时队列名（指定时间、延时消费）
     */
    public static final String DELAY_VARIABLE_QUEUE_KEY = "DELAY_VARIABLE_QUEUE_KEY";
    public static final String DELAY_VARIABLE_EXCHANGE_KEY = "DELAY_VARIABLE_EXCHANGE_KEY";
    public static final String DELAY_VARIABLE_ROUTING_KEY = "DELAY_VARIABLE_ROUTING_KEY";

}
